class Test extends egret.Shape {
    public constructor() {
        super()
        this.draw()
    }
    private draw(): void {
        this.graphics.beginFill(0xff0000)
        this.graphics.drawRect(0, 0, 100, 50)
        this.graphics.endFill()
        this.x = 100
        this.y = 100
        this.touchEnabled = true
        this.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this)
    }
    private onClick(e): void {
        // console.log('e', e)
        this.scaleX += 2
        this.scaleY += 2
        // this.y += 50
    }
}